package com.example.wx.dailyreport.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.wx.dailyreport.pojo.Role;
import com.example.wx.dailyreport.pojo.RoleAuthorities;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hulinbo
 * @since 2020-07-30
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<RoleAuthorities> selectRoleBy(Role role, Long authority_flag, int skip, int limit);

    int selectRoleCountBy(Role role, Long authority_flag);

    List<String> selectRolesByUsername(String username);
}
